# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-httpagentparser
_pkgname=httpagentparser
pkgver=1.9.5
pkgrel=5
pkgdesc='Extracts OS browser information from the user agent string.'
arch=('any')
url='https://pypi.org/project/httpagentparser/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('663747f15ed289a35d3460a6ea240390cd5e706fe154e847f50337406ead4b63e2c9116c12c24bb060bd5a66de3d7a5c180a189af579f58844906725d5244796')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package () {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

